package com.huizhan.web.model;

import javax.persistence.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.*;
import io.swagger.annotations.*;
import java.util.Date;

/**
 * @Description 内容 
 * @Author  yanluping@outlook.com
 * @Date 2020-02-25 10:35:37 
 */
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
@Entity
@ApiModel(value =  "内容")
@Table ( name ="Project_Content")
public class ProjectContent  implements Serializable {

	private static final long serialVersionUID =  7050278313095966475L;

	/**
	 * 内容ID
	 */
	@ApiModelProperty(value = "内容ID")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "Project_Content_Id" )
	private Long projectContentId;

	/**
	 * 项目ID
	 */
	@ApiModelProperty(value = "项目ID")
   	@Column(name = "Project_Id" )
	private String projectId;

	/**
	 * 内容类型ID
	 */
	@ApiModelProperty(value = "内容类型ID")
   	@Column(name = "Project_Content_Type_Id" )
	private Long projectContentTypeId;

	/**
	 * 标题
	 */
	@ApiModelProperty(value = "标题")
   	@Column(name = "Title" )
	private String title;

	/**
	 * 索引
	 */
	@ApiModelProperty(value = "索引")
   	@Column(name = "IndexNo" )
	private Long indexNo;

	/**
	 * 内容
	 */
	@ApiModelProperty(value = "内容")
   	@Column(name = "Content" )
	private String content;

	/**
	 * 禁用
	 */
	@ApiModelProperty(value = "禁用")
   	@Column(name = "Disabled" )
	private Integer disabled;

	/**
	 * 创建日期
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建日期",example = "2018-10-01 12:18:48")
   	@Column(name = "CreateDate" )
	private Date createDate;

	public Long getProjectContentId() {
		return this.projectContentId;
	}

	public void setProjectContentId(Long projectContentId) {
		this.projectContentId = projectContentId;
	}

	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public Long getProjectContentTypeId() {
		return this.projectContentTypeId;
	}

	public void setProjectContentTypeId(Long projectContentTypeId) {
		this.projectContentTypeId = projectContentTypeId;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Long getIndexNo() {
		return this.indexNo;
	}

	public void setIndexNo(Long indexNo) {
		this.indexNo = indexNo;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getDisabled() {
		return this.disabled;
	}

	public void setDisabled(Integer disabled) {
		this.disabled = disabled;
	}

	@Override
	public String toString() {
		return "{" +
					"projectContentId='" + projectContentId + '\'' +
					"disabled='" + disabled + '\'' +
					"projectId='" + projectId + '\'' +
					"projectContentTypeId='" + projectContentTypeId + '\'' +
					"title='" + title + '\'' +
					"indexNo='" + indexNo + '\'' +
					"content='" + content + '\'' +
					"createDate='" + createDate + '\'' +
				'}';
	}

}
